package com.vdimitr.katapotter;

/**
 * Mapping between number of books and discount
 * 
 * @author vasileios.dimitriadis
 *
 */
public enum Discount {

	NO_DISCOUNT (1, 1.00d),
	TWO_BOOKS 	(2, 0.95d),
	THREE_BOOKS (3, 0.90d),
	FOUR_BOOKS 	(4, 0.80d),
	FIVE_BOOKS 	(5, 0.75d);
	
	private double discount;
	
	private int numberOfBooks;
	
	private Discount(int numberOfBooks, double discount) {
		this.numberOfBooks = numberOfBooks;
		this.discount = discount;
	}

	public double getDiscount() {
		return discount;
	}

	public int getNumberOfBooks() {
		return numberOfBooks;
	}
	
}
